<?php
	include 'conn.php';
	//获取前端的值


	// $id = $_POST['id'];
    // $county = $_POST['county'];
    // $name = $_POST['name'];
    // $sex = $_POST['sex'];
    // $age = $_POST['age'];
    // $clas = $_POST['clas'];
    // $email = $_POST['email'];
    // $phone = $_POST['phone'];
	

	$id = $_POST['id'];
	$sex = $_POST['sex'];
	$name = $_POST['name'];
	$age = $_POST['age'];
	$phone = $_POST['phone'];
    // $uuid = $_POST['uuid'];
	// ,email,county,clas,,clas,uuid
	// $sql = "insert into stuinfo(name,sex,age,phone_number) values ('$name','$sex',$age,$phone)";,,'$email','$county','$clas',$clas,$uuid
	$sql = "insert into stuinfo(id,name,sex,age,phone_number) values ('$id','$name','$sex',$age,$phone)";

	$result = mysqli_query($link,$sql);
	if (!$result){
		echo '0';//插入失败
		die();
	}else{
		echo '1';//插入成功
	}
?>